package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.ContentDao;
import com.ericom.model.Content;
import com.ericom.service.ContentManager;

@Service("contentManager")
public class ContentManagerImpl extends GenericManagerImpl<Content, Long>
		implements ContentManager {

	ContentDao contentDao;

	@Autowired
	public ContentManagerImpl(ContentDao contentDao) {
		super(contentDao);
		this.contentDao = contentDao;
	}


	public List<Content> findByTitle(String title) {

		return contentDao.findByTitle(title);
	}

}
